﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net.Mail;
using ArmaTuCumpleModel.Model;
using ArmaTuCumpleModel.Repository;
using ArmaTuCumpleWeb.Models;
using System.Web.Security;


namespace ArmaTuCumpleWeb
{
    public class Mail
    {
        RepServiciosUsuario rep= new RepServiciosUsuario();
        RepServiciosActividad repActividad= new RepServiciosActividad();
        AccountMembershipService member = new AccountMembershipService();
        
        
        public bool Enviar(Servicio_Usuario serv)
        {
            Servicio serv2=rep.ObtenerServicioId(serv.id_servicio);
            

            List<MembershipUser> lista=member.GetAllUsers();
            String mail="";
            String nombre = "";
            String subject = "";
            String Body = "";

            foreach(MembershipUser u in lista)
            {
                if(u.ProviderUserKey.Equals(serv2.id_ofrece))
                {
                    mail=u.Email;
                    
                }
                //if(u.ProviderUserKey.Equals(serv.
            }

            return false;
            
        }
    }
}